package com.example.conf.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 会员卡
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_card")
@ApiModel(value="MemberCardEntity对象", description="会员卡")
public class MemberCardEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "封面图片")
    @ApiModelProperty(value = "封面图片")
    private String masterPicUrl;

    @Column(comment = "卡名称")
    @ApiModelProperty(value = "卡名称")
    private String title;

    @Column(comment = "商品id")
    @ApiModelProperty("商品id")
    private Long goodId;

    @Column(comment = "skuId")
    @ApiModelProperty("skuId")
    private Long skuId;

    @Column(comment = "描述")
    @ApiModelProperty(value = "描述")
    private String remarks;

    @Column(comment = "价格")
    @ApiModelProperty(value = "价格")
    private Double price;

    @Column(comment = "配送次数")
    @ApiModelProperty(value = "配送次数")
    private Integer distNum;

    @Column(comment = "配送频率（单位天）")
    @ApiModelProperty(value = "配送频率（单位天）")
    private Integer distFrequency;

    @Column(comment = "库存")
    @ApiModelProperty(value = "库存")
    private Integer stock;

    @Column(comment = "状态：1-上架；0-下架")
    @ApiModelProperty(value = "状态：1-上架；0-下架")
    private String status;

    @Column(comment = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "创建人")
    private Long createBy;

    @Column(comment = "操作时间")
    private LocalDateTime updateTime;
    @Column(comment = "操作人")
    private Long updateBy;
    @Column(comment = "逻辑删除标志")
    private Integer delFlag;




}
